// router.ts
import { createRouter, createWebHistory } from 'vue-router';

// 定义路由
const routes = [
    {
        path: '/',
        name: 'BTN',
        component: () => import('@/components/PDF/'),
    },
    {
        path: '/pdf',
        name: 'PDF',
        component: () => import('@/components/PDF/pdf.vue'),
    }
];

// 创建router实例
const router = createRouter({
    history: createWebHistory(),
    routes,
});

export default router;